<div id="content">
	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Enquiries</h1>
    <?php //echo $this->Html->link("Ticket", array('action' => 'add')); ?>&nbsp;&nbsp;
	</div>
	<!-- end page-heading -->
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized">
        <?php echo $this->Html->image('/images/shared/side_shadowleft.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
    </th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized">
        <?php echo $this->Html->image('/images/shared/side_shadowright.jpg', array('width' => '20', 'height' => '300', 'alt' => '')); ?>
    </th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td valign="top">
		<!--  start content-table-inner ...................................................................... START -->
		
			<!--  start table-content  -->

		<div id="content-table-inner">

				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left minwidth-1">
               Name
          </th>
					<th class="table-header-repeat line-left minwidth-1">
               Email
          </th>
					<th class="table-header-repeat line-left minwidth-1">
               Date
          </th>
					<th class="table-header-repeat line-left">
               Action
          </th>          
				</tr>

        <?php 
            foreach ($enquiries as $value): 
            $class = $value['Enquiry']['read'] == 0? 'unread': 'read';
        ?>
            <tr class="<?php echo $class; ?>">
                <td>
                    <?php echo $value['Enquiry']['name']; ?>
                </td>
                <td>
                    <?php echo $value['Enquiry']['email']; ?>
                </td>
                <td>
                    <?php echo $value['Enquiry']['created']; ?>
                </td>
                <td>
                    <?php echo $this->Html->link('View', array('action' => 'enquiry_view', $value['Enquiry']['id'], 'admin' => true)); ?>
                </td>
            </tr>
        <?php endforeach; ?>
        
      </table>
			<div class="clear"></div>

		</div>
      <!--  end content-table  -->
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<style>
#paging-table a {
  padding: 0 12px 12px;
}
</style>